<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>05_表格插入</title>
</head>
<body>
<table border="1" style="border-collapse:collapse; ">
    <caption>授课信息表</caption>
    <tr>
        <th>序号</th>
        <th>姓名</th>
        <th>课程</th>
    </tr>
    <tr>
        <td style="text-align:center;">1</td>
        <td>伟超</td>
        <td>框架</td>
    </tr>
    <tr>
        <td style="text-align:center;">2</td>
        <td>晓宇</td>
        <td>前端基础</td>
    </tr>
    <tr>
        <td style="text-align:center;">3</td>
        <td>旭伟</td>
        <td>项目</td>
    </tr>
</table>
<!--colspan="3"  横向合并单元格-->
<!--rowspan="3"  竖向合并单元格-->


<hr>
<table border="1" style="border-collapse:collapse;" >
    <caption>练习</caption>
    <tr>
        <td style="text-align:center;" colspan="3">1-1</td>
<!--        <td>练习</td>-->
<!--        <td>前端</td>-->
        <td rowspan="3">基础</td>
    </tr>
    <tr>
        <td style="text-align:center;" rowspan="2">2-2</td>
        <td>练习</td>
        <td>前端</td>
<!--        <td>基础</td>-->
    </tr>
    <tr>
<!--        <td style="text-align:center;">3-3</td>-->
        <td>练习</td>
        <td>前端</td>
<!--        <td>基础</td>-->
    </tr>
    <tr>
        <td style="text-align:center;" colspan="4">4-4</td>
<!--        <td>练习</td>-->
<!--        <td>前端</td>-->
<!--        <td>基础</td>-->
    </tr>
</table>
<hr>
<table border="1" style="border-collapse:collapse;">
    <caption>购物车</caption>
    <tr>

        <th>商品编号</th>
        <th>商品名称</th>
        <th>商品价格</th>

    </tr>
    <tr>
        <td style="text-align:center;">1</td>
        <td>荣耀x60</td>
        <td>2601</td>
    </tr>
    <tr>
        <td style="text-align:center;">2</td>
        <td>三折叠 怎么折都有面</td>
        <td>27399</td>
    </tr>
    <tr>
        <td style="text-align:center;">总价:</td>
        <td colspan="2">30000</td>
    </tr>
</table>





</body>
</html>